<!-- src/App.vue -->
<template>
  <router-view />
</template>

<script setup>
import { onMounted } from 'vue';
import { useAuthStore } from '@/stores/auth';

// 在应用根组件挂载时，执行一次自动登录检查
onMounted(() => {
  const authStore = useAuthStore();
  authStore.tryAutoLogin();
});
</script>

<style>
@import './assets/css/header.css';
@import './assets/css/layout.css';
@import './assets/css/table.css';
</style>